                                #include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    setWindowTitle("SOso pavliashvili");
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
   double b=ui->lineEdit->text().toDouble();
   double a=ui->lineEdit_2->text().toDouble();
   double c=a+b;
    ui->lineEdit_3->setText(QString().setNum(c));
}

void MainWindow::on_pushButton_2_clicked()
{
    close();
}
